package com.huaguoguo.cyg.entity.seckill.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * 红包信息表
 */
@TableName("red_racket")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class RedPacket implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private long id;
    private long redPacketId;//红包id
    private int totalAmount;//红包总金额，单位分
    private int totalPacket;//红包总个数
    private int type;//类型
    private int uid;//创建用户
    private Timestamp createTime;//创建时间
    @Version
    private int version;

}
